package org.xshop.model;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import top.ibase4j.core.base.BaseModel;

/**
 * <p>
 * 购物车
 * </p>
 *
 * @author ShenHuaJie
 * @since 2018-03-01
 */
@ApiModel(value = "购物车", description = "购物车中的一栏")
@TableName("t_shopping_cart")
@SuppressWarnings("serial")
public class TShoppingCart extends BaseModel {

    @ApiModelProperty(value = "会员编号")
    @TableField("member_id")
    private Long memberId;
    @ApiModelProperty(value = "购买数量")
    @TableField("quantity_")
    private BigDecimal quantity;
    @ApiModelProperty(value = "商品id")
    @TableField("sku_id")
    private Long skuId;
    @ApiModelProperty(value = "商品信息，暂未用到")
    @TableField("sku_info")
    private String skuInfo;
    @ApiModelProperty(value = "商品属性")
    @TableField("sku_attribute")
    private String skuAttribute;
    @ApiModelProperty(value = "失效日期")
    @TableField("expiry_date")
    private Date expiryDate;


    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public BigDecimal getQuantity() {
        return quantity;
    }

    public void setQuantity(BigDecimal quantity) {
        this.quantity = quantity;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public String getSkuInfo() {
        return skuInfo;
    }

    public void setSkuInfo(String skuInfo) {
        this.skuInfo = skuInfo;
    }

    public String getSkuAttribute() {
        return skuAttribute;
    }

    public void setSkuAttribute(String skuAttribute) {
        this.skuAttribute = skuAttribute;
    }

    public Date getExpiryDate() {
        return expiryDate;
    }

    public void setExpiryDate(Date expiryDate) {
        this.expiryDate = expiryDate;
    }

}